package me.sunpeng.design.factory.factorymethod.pizzastore.order;

import me.sunpeng.design.factory.factorymethod.pizzastore.pizza.LDCheesePizza;
import me.sunpeng.design.factory.factorymethod.pizzastore.pizza.LDPepperPizza;
import me.sunpeng.design.factory.factorymethod.pizzastore.pizza.Pizza;

/**
 * LD 披萨广场
 *
 * @author sp
 */
public class LDOrderPizza extends OrderPizza {
    @Override
    Pizza createPizza(String orderType) {

        Pizza pizza = null;
        if ("cheese".equals(orderType)) {
            pizza = new LDCheesePizza();
        } else if ("pepper".equals(orderType)) {
            pizza = new LDPepperPizza();
        }
        // TODO Auto-generated method stub
        return pizza;
    }
}
